//--------------------------------------------------------------------------------------
// File: Shaders.hlsl
//
// Basic pixel shader that returns texture color or black (for debug).
// Copyright (c) Dave Ottley. All rights reserved.
//--------------------------------------------------------------------------------------

Texture2D txDiffuse : register( t0 );
SamplerState samLinear : register( s0 );

//--------------------------------------------------------------------------------------
struct PS_INPUT
{
	float4 Pos : SV_POSITION;
	float2 Tex : TEXTURE;
};

//--------------------------------------------------------------------------------------
// Pixel Shader
//--------------------------------------------------------------------------------------
float4 main( PS_INPUT input ) : SV_TARGET
{
	//FOR TEXTURE DEBUG ONLY
	//float4 black = {0.0f, 0.0f, 0.0f, 0.0f};
	//return black;
	return txDiffuse.Sample( samLinear, input.Tex );
}
